package com.smart.seven.aop.cglib;

/**
 * @author junrui.wang
 * @create 2018/7/24
 */
public class Test {
    public static void main(String[] args) {
        CglibProxy cglibProxy = new CglibProxy();
        //通过动态生成子类的方式创建代理类,所以不能代理private或者final的方法进行代理
        ForumServiceImpl forumServiceImpl =
                (ForumServiceImpl) cglibProxy.getProxy(ForumServiceImpl.class);
        forumServiceImpl.removeTopic(100);
        forumServiceImpl.removeForum(1022);
    }
}
